<template>
  <el-dialog
      v-model="/* eslint-disable-next-line vue/no-mutating-props */
      dialogVisible"
      title="提示"
      width="40%"
      :show-close="false"
      :close-on-click-modal="false"
  >
    <span>{{text}}</span>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="cancel">取消</el-button>
        <el-button type="primary" @click="closeWin">
          确定退出
        </el-button>
      </span>
    </template>
  </el-dialog>
</template>

<script setup>
import {defineEmits, defineProps} from "vue";
// eslint-disable-next-line no-unused-vars
let emit = defineEmits(['dialogVisible',"cancel","closeWin","text"])
// eslint-disable-next-line no-unused-vars
let props = defineProps({
  dialogVisible: Boolean,
  cancel:Function,
  closeWin:Function,
  text:String
})

</script>

<style scoped>

</style>